﻿using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using System.ComponentModel.DataAnnotations;

namespace SingleUserMall.Workers.Form
{
    /// <summary>
    /// 安装师傅
    /// </summary>
    [AutoMapTo(typeof(Worker))]
    public class WorkerForm:EntityDto
    {
        /// <summary>
        /// 名称
        /// </summary>
        [Required, MaxLength(50)]
        public string Name { get; set; }
        /// <summary>
        /// 图片
        /// </summary>
        [MaxLength(100)]
        public string Picture { get; set; }
        /// <summary>
        /// 手机号
        /// </summary>
        [Required, MaxLength(20)]
        public string PhoneNumber { get; set; }
        /// <summary>
        /// 价格
        /// </summary>
        public decimal Price { get; set; }
        /// <summary>
        /// 安装量
        /// </summary>
        public long Installation { get; set; }
        /// <summary>
        /// 工作年数
        /// </summary>
        public decimal WorkingYear { get; set; }
        /// <summary>
        /// 评论标签
        /// </summary>
        public string Tags { get; set; }
    }
}
